﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Web.Helper
{
    public class GenericJsonResult
    {
        // Methods
        public GenericJsonResult(bool ok = false, bool isModelValid = true, string errorMessage = "", string renderedView = "", object data = null)
        {
            this.Ok = ok;
            this.IsModelValid = isModelValid;
            this.ErrorMessage = errorMessage;
            this.RenderedView = renderedView;
            this.Data = data;
        }

        // Properties
        public object Data { get; set; }
        public string ErrorMessage { get; set; }
        public bool IsModelValid { get; set; }
        public bool Ok { get; set; }
        public string RenderedView { get; set; }
    }
}